package com.benbi.shequapi.bean;
//tyc version
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class News {
    private int news_id;
    private int a_pid;
    private int top;
    private String title;
    private String content;
    private Date create_time;

    public News(){
    }

    public News(int news_id,int a_pid,int top,String title,String content,Date create_time){
        this.news_id=news_id;
        this.a_pid=a_pid;
        this.top=top;
        this.title=title;
        this.content=content;
        this.create_time=create_time;
    }
    //getFunction
    public int getNews_id(){return news_id;}
    public int getA_pid(){return a_pid;}
    public int getTop(){return top;}
    public String getTitle(){return title;}
    public String getContent(){return content;}
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    public Date getCreate_time(){return create_time;}

    //setFunction
    public void setNews_id(int news_id){this.news_id=news_id;}
    public void setA_pid(int a_pid){this.a_pid=a_pid;}
    public void setTop(int top){this.top=top;}
    public void setTitle(String title){this.title=title;}
    public void setContent(String content){this.content=content;}
    public void setCreate_time(Date create_time){this.create_time=create_time;}

}
